package com.qmerak.service;

import java.util.List;

import com.qmerak.entity.MemberEntity;
import com.qmerak.entity.OrgEntity;

/**
 * @author shaohong.cheng
 * @date 2013-4-11
 */
public interface IOrgService {
	public OrgEntity add(OrgEntity entity);

	public void delete(OrgEntity entity);

	public void update(OrgEntity entity);

	public List<OrgEntity> list();

	public List<OrgEntity> listByManager(MemberEntity memberEntity);

	public OrgEntity orgOfManager(MemberEntity memberEntity);

	public List<OrgEntity> children(OrgEntity parentOrgEntity);

	public List<OrgEntity> rootOrgs();

	public OrgEntity find(String id);

	public List<OrgEntity> findByCondition(String condition);
}
